{% extends 'kingadmin/index.html' %}
{% load kingadmin_tags %}



{% block right-content-container %}
    <ol class="breadcrumb">
        <li><a href="{% url 'kingadmin:app_index' %}">HOME</a></li>
        <li><a href="{% url 'kingadmin:app_model_index' app_name %}">{{ app_name|upper }}</a></li>
        <li><a href="{% url 'kingadmin:table_obj_list' app_name model_name %}">{% get_model_verbose_name admin_class %}</a></li>
        <li class="active">Delete {% get_model_verbose_name admin_class%}数据</li>
    </ol>
    <h4 class="page-header alert alert-danger" role="alert">注意：以下与{% for obj in objs %}<b style="color: black">&nbsp;{{ obj }}&nbsp;</b>{% endfor %}<b style="color: black">&nbsp;{{ obj }}&nbsp;</b>相关的数据将会被删除</h4>
<div>
{% if objs %}
    {% for obj in objs %}
    {% display_all_related_objs obj as all_related_objs %}
    {{ all_related_objs |safe }}
    {% endfor %}
{% elif obj %}
    {% display_all_related_objs obj as all_related_objs %}
    {{ all_related_objs |safe }}
{% endif %}

<form method="post">{% csrf_token %}
    {% if querysets_ids %}
        <input type="hidden" name="selected_ids" value="{{ querysets_ids }}">
    {% endif %}
    <input type="submit" class="btn btn-danger" value="确认删除">
    <a href="{% url 'kingadmin:table_obj_list' app_name model_name %}" class="btn btn-info">返回</a>
</form>
</div>
{% endblock %}